// JavaScript Document
function dropNav(obj){
	$(obj).each(function(){
						 var theSpan=$(this);
						 var theUl=theSpan.find("ul");
						 var theHeight=theUl.height();
						 theUl.css({height:0,opacity:0});
						 theSpan.hover(function(){
												$(this).addClass("nav-list-1");
												theUl.stop().show().animate({height:theHeight,opacity:1},400);

												},function(){
													$(this).removeClass("nav-list-1");
													theUl.stop().show().animate({height:0,opacity:0},400,
																				function(){
																					$(this).css({display:"none"});
																					})});                                                 
						 });
	}
	$(document).ready(function(){
	
	dropNav(".nav-list");

});


function changekind(n){
	var news_kind=document.getElementById("tab-kind");
	var i=news_kind.getElementsByTagName("li").length;
	for(i=1;i<=2;i++){
		document.getElementById("tab-cons"+i).style.display="none";
		document.getElementById("tab-kind"+i).className="none";
		}
		document.getElementById("tab-cons"+n).style.display="block";
		document.getElementById("tab-kind"+n).className="cur";
	}

function changekinds(n){
	var news_kind=document.getElementById("tab-kind-2");
	var i=news_kind.getElementsByTagName("li").length;
	for(i=1;i<=2;i++){
		document.getElementById("tab-conss"+i).style.display="none";
		document.getElementById("tab-kinds"+i).className="none";
		}
		document.getElementById("tab-conss"+n).style.display="block";
		document.getElementById("tab-kinds"+n).className="cur";
	}


